home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / scheme / gjr / cmplrtst.lha / sort / README < prev   
Encoding:
Text File  |  1990-03-27  |  444 b   |  13 lines

  1. All the programs in this directory sort vectors and lists.
  2. They use different algorithms (heap sort, merge sort, quick sort,
  3. etc.) and either use fixnum arithmetic (names start with "fx") or
  4. generic arithmetic for index compuation.
  5.  
  6. Usage:
  7.  
  8. (sort '(10 9 8 7 6 5 4 3 2 1) <) -> (1 2 3 4 5 6 7 8 9 10)
  9. (sort '#(10 9 8 7 6 5 4 3 2 1) <) -> #(1 2 3 4 5 6 7 8 9 10)
  10. (define foo '#(10 9 8 7 6 5 4 3 2 1))
  11. (sort! foo <)
  12. foo -> #(1 2 3 4 5 6 7 8 9 10)
  13.